package nl.han.ica.dda;

public class RenteBerekening {
	private double vasteRente;
	private double minimumSaldo;
	
	public RenteBerekening(){
		
	}
	
	public RenteBerekening(double vasteRente, double minimumSaldo) {
		super();
		this.vasteRente = vasteRente;
		this.minimumSaldo = minimumSaldo;
	}

	public double getVasteRente() {
		return vasteRente;
	}

	public void setVasteRente(double vasteRente) {
		this.vasteRente = vasteRente;
	}

	public double getMinimumSaldo() {
		return minimumSaldo;
	}

	public void setMinimumSaldo(double minimumSaldo) {
		this.minimumSaldo = minimumSaldo;
	}

	public double berekenRentebedrag (double perc, double spaar){
		if (spaar<1) throw new IllegalArgumentException();
		return spaar*perc;
	}
	
}
